home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1997 April / EnigmA AMIGA RUN 17 (1997)(G.R. Edizioni)(IT)[!][issue 1997-04][EAR-CD].iso / EARCD / text / edit / envstm20.lha / envSTM20 / Install < prev    next >
Text File  |  1996-11-22  |  14KB  |  421 lines

  1. ; $VER: 1.0 All rights reserved.
  2.  
  3. (delopts "oknodelete" "force" "askuser")
  4. (complete 0)
  5.  
  6. (if (exists "GOLDED:" (NOREQ))
  7.  
  8.     (
  9.         (set vernum (getversion "golded:golded"))
  10.  
  11.         (set ver (/ vernum 65536))
  12.         (set rev (- vernum (* ver 65536)))
  13.  
  14.         (set version (+ (* 10 ver) rev))
  15.  
  16.         (if (< version 44)
  17.  
  18.             (
  19.                 (message "\nSorry, GoldED 4.4.0 or better required")
  20.  
  21.                 (exit (quiet))
  22.             )
  23.         )
  24.  
  25.         (message (cat "\n"
  26.  
  27.             "                                            \n"
  28.             "StormC mode for GoldED 4                    \n"
  29.             "                                            \n"
  30.             "©1996 Dietmar Eilert                        \n"
  31.             "      All Rights Reserved.                  \n"
  32.             "                                            \n"
  33.             "      E-Mail: dietmar@tomate.tng.oche.de    \n"
  34.             "                                            \n"
  35.             "GoldED Release 4.4.0+ required.             \n"
  36.         ))
  37.  
  38.         (if (= @language "deutsch")
  39.  
  40.             (set language 1)
  41.             (set language 0)
  42.         )
  43.  
  44.         (set language (askchoice
  45.  
  46.             (prompt "\nStormC Menu\n")
  47.  
  48.             (choices
  49.  
  50.                 "English"
  51.                 "Deutsch"
  52.             )
  53.  
  54.             (default language)
  55.  
  56.             (help @askchoice-help)
  57.         ))
  58.  
  59.         (if (= language 1)
  60.  
  61.             (
  62.                 (set #install_api             "API-Client installieren ?"   )
  63.                 (set #install_syntaxparser    "Syntax-Parser installieren ?")
  64.                 (set #install_syntax          "Syntax-Parser"               )
  65.                 (set #install_syntax_storm    "WarpStormC++"                )
  66.                 (set #install_syntax_warp     "WarpC++"                     )
  67.                 (set #install_syntax_standard "Standard"                    )
  68.                 (set #install_syntax_none     "Keiner"                      )
  69.  
  70.                 (set #install_syntax_help (cat "\n"
  71.  
  72.                     "Vorauswahl des Syntax-Parsers (zuständig für  \n"
  73.                     "die farbige Darstellung von Schlüsselworten): \n"
  74.                     "                                              \n"
  75.                     "WarpStormC++                                  \n"
  76.                     "                                              \n"
  77.                     "  Komplexer konfigurierbarer C++-Parser. Er-  \n"
  78.                     "  kennt und markiert C/C++-Befehle und Amiga- \n"
  79.                     "  typische Ausdrücke. Empfohlen für 68040 und \n"
  80.                     "  besser. Speicherverbrauch: hoch (Minimum:   \n"
  81.                     "  150 K). Relative Performance: 45%           \n"
  82.                     "                                              \n"
  83.                     "WarpC++                                       \n"
  84.                     "                                              \n"
  85.                     "  Schneller C++ Parser. Beschränkte Konfi-    \n"
  86.                     "  gurierbarkeit. Erkennt C/C++-Befehle.       \n"
  87.                     "  Empfohlen für 68030 oder besser. Speicher-  \n"
  88.                     "  verbrauch: mittel. Relative Performance:    \n"
  89.                     "  60%                                         \n"
  90.                     "                                              \n"
  91.                     "Standard                                      \n"
  92.                     "                                              \n"
  93.                     "  Einfacher Kommentar-Parser: Erkennt und     \n"
  94.                     "  markiert C/C++-Kommentare im Quelltext.     \n"
  95.                     "  Empfohlen für 68020 oder besser. Kein       \n"
  96.                     "  nennenswerter Speicherverbrauch. Relative   \n"
  97.                     "  Performance: 65%                            \n"
  98.                     "                                              \n"
  99.                     "Keiner                                        \n"
  100.                     "                                              \n"
  101.                     "  Keine farbliche Hervorhebungen im Text.     \n"
  102.                     "  Empfohlen für 68000 oder besser. Relative   \n"
  103.                     "  Performance: 100%                           \n"
  104.                 ))
  105.  
  106.                 (set #toolbar_style "\nBevorzugte Werkzeugleiste:\n")
  107.  
  108.                 (set #toolbar_style_4 "4  Farben")
  109.                 (set #toolbar_style_8 "8+ Farben")
  110.  
  111.                 (set #toolbar_style_help (cat "\n"
  112.  
  113.                     " Beide Varianten können auf beliebigen Screens\n"
  114.                     " verwendet werden. Der 4-Farb-Stil wurde für  \n"
  115.                     " vierfarbige Screen optimiert. Der 8-Farb-Stil\n"
  116.                     " wurde für Screens mit acht oder mehr Farben  \n"
  117.                     " (optimal: 16 Farben) ausgelegt.              \n"
  118.                 ))
  119.             )
  120.             (
  121.                 (set #install_api             "Install API client ?"   )
  122.                 (set #install_syntaxparser    "Install syntax parser ?")
  123.                 (set #install_syntax          "Syntax parser"          )
  124.                 (set #install_syntax_storm    "WarpStormC++"           )
  125.                 (set #install_syntax_warp     "WarpC++"                )
  126.                 (set #install_syntax_standard "Standard"               )
  127.                 (set #install_syntax_none     "None"                   )
  128.  
  129.                 (set #install_syntax_help (cat "\n"
  130.  
  131.                     "Preselection of syntax highlighting parser    \n"
  132.                     "(responsible for color-coded text):           \n"
  133.                     "                                              \n"
  134.                     "WarpStormC++                                  \n"
  135.                     "                                              \n"
  136.                     "  Complex configurable C++ parser. Highlights \n"
  137.                     "  C keywords and Amiga keywords. Recommended  \n"
  138.                     "  for 68040 or better. RAM requirements: high \n"
  139.                     "  (150 K minimum). Relative performance: 45%  \n"
  140.                     "                                              \n"
  141.                     "WarpC++                                       \n"
  142.                     "                                              \n"
  143.                     "  Fast C++ parser. Limited configurability.   \n"
  144.                     "  Highlights C++ keywords. Recommended for    \n"
  145.                     "  68030 or better. RAM requirements: medium.  \n"
  146.                     "  Relative performance: 60%                   \n"
  147.                     "                                              \n"
  148.                     "Standard                                      \n"
  149.                     "                                              \n"
  150.                     "  Simple C++ comment parser. Highlights C/C++ \n"
  151.                     "  comments only. Recommended for 68020 or     \n"
  152.                     "  better. RAM requirements: small. Relative   \n"
  153.                     "  performance: 65%                            \n"
  154.                     "                                              \n"
  155.                     "None                                          \n"
  156.                     "                                              \n"
  157.                     "  No syntax highlighting. Recomended for      \n"
  158.                     "  68000 or better. Relative performance: 100% \n"
  159.                 ))
  160.  
  161.                 (set #toolbar_style "\nSelect preferred toolbar style:\n")
  162.  
  163.                 (set #toolbar_style_4 "4  colors")
  164.                 (set #toolbar_style_8 "8+ colors")
  165.  
  166.                 (set #toolbar_style_help (cat "\n"
  167.  
  168.                     " Both styles can be used on all screens. The  \n"
  169.                     " 4 color style has been optimized for 4-color \n"
  170.                     " screens. The 8+ style has been optimized for \n"
  171.                     " screens with eight or more colors.           \n"
  172.                 ))
  173.             )
  174.         )
  175.  
  176.         (copylib
  177.  
  178.             (prompt #install_api)
  179.             (source "api/mirror.api")
  180.             (dest   "golded:api")
  181.             (confirm)
  182.             (help @copylib-help)
  183.         )
  184.         (
  185.         copylib
  186.  
  187.             (prompt #install_api)
  188.             (source "api/quickinfo.api")
  189.             (dest   "golded:api")
  190.             (confirm)
  191.             (help @copylib-help)
  192.         )
  193.  
  194.         (set syntax 1)
  195.  
  196.         (set syntax (askchoice
  197.  
  198.             (prompt (cat "\n" #install_syntax "\n"))
  199.  
  200.             (choices
  201.  
  202.                 #install_syntax_storm
  203.                 #install_syntax_warp
  204.                 #install_syntax_standard
  205.                 #install_syntax_none
  206.             )
  207.  
  208.             (default syntax)
  209.  
  210.             (help #install_syntax_help)
  211.         ))
  212.  
  213.         (if (not (exists "golded:syntax"))
  214.  
  215.             (makedir "golded:syntax")
  216.         )
  217.  
  218.         (copylib
  219.  
  220.             (prompt #install_syntaxparser)
  221.             (source "syntax/warpStormC++.parser")
  222.             (dest   "golded:syntax")
  223.             (confirm)
  224.             (help @copylib-help)
  225.         )
  226.  
  227.         (copylib
  228.  
  229.             (prompt #install_syntaxparser)
  230.             (source "syntax/warpC++.parser")
  231.             (dest   "golded:syntax")
  232.             (confirm)
  233.             (help @copylib-help)
  234.         )
  235.  
  236.         (copylib
  237.  
  238.             (prompt #install_syntaxparser)
  239.             (source "syntax/example_context.parser")
  240.             (dest   "golded:syntax")
  241.             (confirm)
  242.             (help @copylib-help)
  243.         )
  244.  
  245.         (if (not (exists "golded:syntax/warpStormC++.includes"))
  246.  
  247.             (copyfiles
  248.  
  249.                 (source "syntax/warpStormC++.includes")
  250.                 (dest "golded:syntax")
  251.                 (nogauge)
  252.             )
  253.         )
  254.  
  255.         (if (not (exists "golded:tools"))
  256.  
  257.             (makedir "golded:tools")
  258.         )
  259.  
  260.         ; install registry editor (if not yet installed)
  261.  
  262.         (if (not (exists "golded:tools/regedit"))
  263.  
  264.             (makedir "golded:tools/regedit")
  265.         )
  266.  
  267.         (copylib
  268.  
  269.             (prompt "Install registry editor ?")
  270.             (source "bin/regedit" )
  271.             (dest   "golded:tools/regedit")
  272.             (confirm)
  273.             (help @copylib-help)
  274.         )
  275.  
  276.         ; install manuals
  277.  
  278.         (if (not (exists "golded:tools/stormc"))
  279.  
  280.             (makedir "golded:tools/stormc")
  281.         )
  282.  
  283.         (copyfiles
  284.  
  285.             (source "stormc")
  286.             (dest   "golded:tools/stormc")
  287.             (all)
  288.             (nogauge)
  289.         )
  290.  
  291.         ; install toolbar images
  292.  
  293.         (if (exists "toolbar") (
  294.  
  295.             (set hicolor
  296.  
  297.                 (askchoice
  298.  
  299.                     (prompt #toolbar_style)
  300.  
  301.                     (choices
  302.  
  303.                         #toolbar_style_4
  304.                         #toolbar_style_8
  305.                     )
  306.  
  307.                     (default 1)
  308.  
  309.                     (help #toolbar_style_help)
  310.                 )
  311.             )
  312.  
  313.             (if (not (exists "golded:toolbar"))
  314.  
  315.                 (makedir "golded:toolbar")
  316.             )
  317.  
  318.             (if (not (exists "golded:toolbar/stormc"))
  319.  
  320.                 (makedir "golded:toolbar/stormc")
  321.             )
  322.  
  323.             (copyfiles
  324.  
  325.                 (source "toolbar")
  326.                 (dest   "golded:toolbar")
  327.                 (nogauge)
  328.                 (all)
  329.             )
  330.  
  331.             (if (= hicolor 1)
  332.  
  333.                 (copyfiles
  334.  
  335.                     (source "toolbar16")
  336.                     (dest   "golded:toolbar")
  337.                     (nogauge)
  338.                     (all)
  339.                 )
  340.             )
  341.         ))
  342.  
  343.         ; install macros
  344.  
  345.         (if (not (exists "golded:arexx"))
  346.  
  347.             (makedir "golded:arexx")
  348.         )
  349.  
  350.         (copyfiles
  351.  
  352.             (source "arexx")
  353.             (dest   "golded:arexx")
  354.             (nogauge)
  355.             (all)
  356.         )
  357.  
  358.         // create temporary directory
  359.  
  360.         (if (not (exists "t:" (noreq)))
  361.  
  362.             (
  363.                 (if (not (exists "ram:t" (noreq)))
  364.  
  365.                     (makedir "ram:t")
  366.                 )
  367.  
  368.                 (makeassign "t" "ram:t")
  369.             )
  370.         )
  371.  
  372.         (copyfiles
  373.  
  374.             (source  "presets"  )
  375.             (dest    "t:"       )
  376.             (pattern "stormc#?")
  377.             (nogauge)
  378.         )
  379.  
  380.         (if (= language 0)
  381.  
  382.             (copyfiles
  383.  
  384.                (source "presets/e")
  385.                (dest   "t:"       )
  386.                (nogauge)
  387.                (all)
  388.             )
  389.  
  390.             (copyfiles
  391.  
  392.                (source "presets/d")
  393.                (dest   "t:"       )
  394.                (nogauge)
  395.                (all)
  396.             )
  397.         )
  398.  
  399.         (if (= syntax 0) (copyfiles (nogauge) (source "presets/cpp/stormc_cpp_0.syntax") (dest "t:") (newname "stormc_cpp.syntax")))
  400.         (if (= syntax 1) (copyfiles (nogauge) (source "presets/cpp/stormc_cpp_1.syntax") (dest "t:") (newname "stormc_cpp.syntax")))
  401.         (if (= syntax 2) (copyfiles (nogauge) (source "presets/cpp/stormc_cpp_2.syntax") (dest "t:") (newname "stormc_cpp.syntax")))
  402.         (if (= syntax 3) (copyfiles (nogauge) (source "presets/cpp/stormc_cpp_3.syntax") (dest "t:") (newname "stormc_cpp.syntax")))
  403.  
  404.         ; update registry
  405.  
  406.         (working "Updating registry...")
  407.  
  408.         (run "golded:tools/regedit/regedit script=install.bat")
  409.     )
  410.  
  411.     (message (cat "\n"
  412.  
  413.         "Please install GoldED before attempting to\n"
  414.         "install this client.                      \n"
  415.     ))
  416. )
  417.  
  418. (exit (quiet))
  419.  
  420. (welcome)
  421.